package com.jic.purchase.service;

import java.lang.Long;
import java.util.List;

import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.Page;
import com.jic.purchase.model.entity.PurchaseOrderProduct;
import com.jic.purchase.model.vo.request.PurchaseOrderProductRequest;

/**
* 采购单和商品的关联表
* @author : 
* @email : 
* @since : 2020-09-19 05:13:42
* @version : v1.0.0
*/
public interface PurchaseOrderProductService {

    long insert(PurchaseOrderProduct purchaseOrderProduct);

    long delete(Long id);

    long update(PurchaseOrderProduct purchaseOrderProduct);

    PurchaseOrderProduct queryByPrimaryKey(Long id);

    List<PurchaseOrderProduct> query(PurchaseOrderProduct purchaseOrderProduct);

    PageResult<PurchaseOrderProduct> queryPage(PurchaseOrderProduct purchaseOrderProduct, Page pageQuery);

    long foreachInsert(PurchaseOrderProductRequest request);

    long editProductNum(PurchaseOrderProductRequest request);

}